package edu.gym4all.service.enums;

import android.os.Parcel;
import edu.gym4all.service.ExerciseEnum;

public enum ShoulderEnum implements ExerciseEnum {

	BARBELL_SHOULDER_PRESS("Barbel shoulder press"),

	DELTOID_FRONT_RAISER("Deltoid Front Raiser"),

	DELTOID_LATERAL_RAISER("Deltoid Lateral Raiser");

	private String name;

	private ShoulderEnum(String name) {
		this.name = name;
	}

	ShoulderEnum(Parcel in) {
		this.name = in.readString();
	}

	@Override
	public String getExerciseName() {
		return this.name;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(this.ordinal());
		dest.writeString(this.name);
	}

	public static final Creator<ShoulderEnum> CREATOR = new Creator<ShoulderEnum>() {
		@Override
		public ShoulderEnum createFromParcel(final Parcel source) {
			return ShoulderEnum.values()[source.readInt()];
		}

		@Override
		public ShoulderEnum[] newArray(final int size) {
			return new ShoulderEnum[size];
		}
	};
}
